phpDocumentor Web Commons
[ class tree: Web Commons ] [ index: Web Commons ] [ all elements ]

Procedural File: utils.php

Source Location: /utils.php

Page Details

This file offers various utility functions and classes.

Author:  Antoine d'Otreppe de Bouvette <a.dotreppe@aspyct.org>
Version:  0.1dev
Filesource:  Source Code for this file
License:  http://www.opensource.org/licenses/mit-license.php
Functions
array_get_default  [line 19]

mixed array_get_default( &$array, mixed $key, mixed $default, array $array  )

Returns the value held by an $array at a given $key, or $default if this $key does not exist.

Parameters:
array   $array: 
mixed   $key: 
mixed   $default: 
   &$array: 

Information Tags:
Since:  0.1

[ Top ]
array_merge_two_dimensional  [line 85]

array array_merge_two_dimensional( array $array1, array &$array2  )

Merges two two-dimensional arrays.

If keys overlap, array1 will be overriden by array2. Both arrays are untouched.

Parameters:
array   $array1: 
array   &$array2: 

Information Tags:
Since:  0.1

[ Top ]
load_extensible_ini_file  [line 38]

array load_extensible_ini_file( string $filename  )

Loads an ini file using http://www.php.net/parse_ini_file, merging its data with a parent ini file if "extends" is defined at the root of the ini file.

"extends" value is the relative or absolute path to the extended file. "extends" will not appear in resulting array.

Returns False on failure (file missing, unreadable or unparseable)

Parameters:
string   $filename: 

Information Tags:
Since:  0.1

[ Top ]


Documentation generated on Fri, 16 Jul 2010 00:48:40 +0200 by phpDocumentor 1.4.3